﻿using System;

class Task4
{
    static void Main()
    {
        int widthN = int.Parse(Console.ReadLine());
        int beforeDots = (widthN - 2) / 2;
        int afterDots = (widthN - 2) / 2;
        int middleDots = 0;
        int backslash = widthN / 2;
        int slash = widthN / 2;
       
        //body of fire
        for (int i = 0; i < (widthN / 2); i++)
        {
            Console.Write(new string('.', beforeDots));
            Console.Write("#");
            Console.Write(new string('.', middleDots));
            Console.Write("#");
            Console.Write(new string('.', afterDots));
            Console.WriteLine();

            middleDots+= 2;
            beforeDots--;
            afterDots--;
        }

        beforeDots = 0;
        afterDots = 0;
        middleDots = widthN - 2;
        for (int i = 0; i < (widthN / 4); i++)
        {
            Console.Write(new string('.', beforeDots));
            Console.Write("#");
            Console.Write(new string('.', middleDots));
            Console.Write("#");
            Console.Write(new string('.', afterDots));
            Console.WriteLine();

            middleDots -= 2;
            beforeDots++;
            afterDots++;
        }

        Console.WriteLine(new string('-', widthN));
        
        beforeDots = 0;
        afterDots = 0;
        for (int i = 0; i < widthN / 2; i++)
        {
            Console.Write(new string('.', beforeDots));
            Console.Write(new string('\\', backslash));
            Console.Write(new string('/', slash));
            Console.Write(new string('.', afterDots));
            Console.WriteLine();

            beforeDots++;
            afterDots++;
            backslash--;
            slash--;
        }

    }
}

